<?php

/**
 * 表管理
 */
Route::get('model_manage/tables', ['as'=> 'model_manage.tables.index', 'uses' => 'ModelManage\TableController@index']);
Route::post('model_manage/tables', ['as'=> 'model_manage.tables.store', 'uses' => 'ModelManage\TableController@store']);
Route::get('model_manage/tables/create', ['as'=> 'model_manage.tables.create', 'uses' => 'ModelManage\TableController@create']);
Route::put('model_manage/tables/{tables}', ['as'=> 'model_manage.tables.update', 'uses' => 'ModelManage\TableController@update']);
Route::patch('model_manage/tables/{tables}', ['as'=> 'model_manage.tables.update', 'uses' => 'ModelManage\TableController@update']);
Route::delete('model_manage/tables/{tables}', ['as'=> 'model_manage.tables.destroy', 'uses' => 'ModelManage\TableController@destroy']);
Route::get('model_manage/tables/{tables}', ['as'=> 'model_manage.tables.show', 'uses' => 'ModelManage\TableController@show']);
Route::get('model_manage/tables/{tables}/edit', ['as'=> 'model_manage.tables.edit', 'uses' => 'ModelManage\TableController@edit']);

//生成数据库表及 migrations文件
Route::get('model_manage/tables/tables/migrate', ['as'=> 'model_manage.tables.migrate', 'uses' => 'ModelManage\TableController@migrate']);